import request from "@/utils/request";

export function login(data){
    return request({
        url:'/user/login',
        method: 'post',
        data: data,
    })
}

export function getInfo() {
    return request({
        url: '/user/info',
        method: 'get',
    })
}

export function getMenuList() {
    return request({
        url: '/user/nav',
        method: 'get',
    })
}

export function logout() {
    return request({
        url: '/user/logout',
        method: 'post',
    })
}
